package top.kaoshanji.p1ch06b;

/**
 * 代码清单-p1ch06b-137页c：枚举类型常量值的数组
 * author kaoshanji
 * ^_^
 * create time 2025/3/8 19:01
 */
public class EnumOrder {

    public static void main(String[] args) {
        for (Spiciness s: Spiciness.values()) {
            System.out.println(s + ", ordinal " + s.ordinal());
        }
    }

}
